import request from '@/utils/request'
import { encryptionData } from '@/utils/com'
import Qs from 'qs'

/* 获取会员等级设置信息列表 */
export function getSetupList(data) {
  return request({
    url: '/jcdGys/getSetupList',
    method: 'get',
    headers: encryptionData(data, '/getSetupList'),
    params: data
  })
}

/* 会员等级设置-删除 */
export function deleteSetup(data) {
  return request({
    url: '/jcdGys/deleteSetup',
    method: 'post',
    headers: encryptionData(data, '/deleteSetup'),
    data: Qs.stringify(data)
  })
}


/* 会员等级设置-获取会员等级设置详情信息 */
export function getSetupDetail(data) {
  return request({
    url: '/jcdGys/getSetupDetail',
    method: 'get',
    headers: encryptionData(data, '/getSetupDetail'),
    params: data
  })
}

/* 会员等级设置-添加 */
export function addSetup(data) {
  return request({
    url: '/jcdGys/addSetup',
    method: 'post',
    headers: encryptionData(data, '/addSetup'),
    data: Qs.stringify(data)
  })
}

/* 会员等级设置-修改 */
export function updateSetup(data) {
  return request({
    url: '/jcdGys/updateSetup',
    method: 'post',
    headers: encryptionData(data, '/updateSetup'),
    data: Qs.stringify(data)
  })
}

/* 获取会员等级信息列表 */
export function getList(data) {
  return request({
    url: '/jcdGys/getList',
    method: 'get',
    headers: encryptionData(data, '/getList'),
    params: data
  })
}
